<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@page import="com.lmpop.updateHtml.parseHtml.UpdateHtml"%>
<%@ page import="com.lmpop.frame.util.Config"%>

<%
	
	Config coreConfig = new Config();
	String rootpath =  request.getRealPath("/");//coreConfig.getString("rootpath");

	request.setCharacterEncoding("UTF-8");
	
	String index_temp = request.getParameter("index_temp");
	String save_dir = request.getParameter("save_dir");
	String default_page = request.getParameter("default_page");
	
	UpdateHtml updateHtml = new UpdateHtml();
	
	if(index_temp!=null&&save_dir!=null&&default_page!=null){
		index_temp=rootpath+"templets/html"+index_temp;
		updateHtml.updateWeb2(index_temp,save_dir,default_page,new Hashtable());
	}
	out.println("更新成功");
		
%>


